package com.quan.sport.city.service.impl;

import org.springframework.stereotype.Service;

import com.quan.common.core.support.BaseService;
import com.quan.sport.city.entity.SportCityUser;
import com.quan.sport.city.service.SportCityUserService;

/**
 * <p>
 * 同城运动-会员表 服务实现类
 * </p>
 *
 * @author 杨浩泉
 * @since 2018-06-24
 */
@Service
public class SportCityUserServiceImpl extends BaseService<SportCityUser> implements SportCityUserService {

	
	@Override
	public SportCityUser findByMobile(String mobile) {
		SportCityUser entity = new SportCityUser() ;
		entity.setMobile(mobile);
		return super.selectOne(entity);
	}

	@Override
	public SportCityUser findByEmail(String email) {
		SportCityUser entity = new SportCityUser() ;
		entity.setEmail(email);
		return super.selectOne(entity);
	}

	@Override
	public SportCityUser findByOpenId(String openid) {
		SportCityUser entity = new SportCityUser() ;
		entity.setOpenid(openid);
		return super.selectOne(entity);
	}
	
}